<template>
  <div style="margin-top:10px;">
    <el-row :gutter="20">
      <el-col :xs="24" :sm="9 " :md="9" :lg="9" :xl="9">
        <div class="header">
          <div class="txt-bor flex4">
            <p>号库总览</p>
            <span style="font-size: 24px;font-weight: 600;">2662个</span>
          </div>
          <div style="padding: 0 15px;">
            <el-progress :text-inside="true" :stroke-width="26" :format="format" :percentage="100"
              style="margin-top: 16px;color: #fff !important !important;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="80" :format="format1"
              style="margin-top: 11px;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="70" :format="format2"
              style="margin-top: 11px;margin-bottom: 15px;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="70" :format="format3"
              style="margin-top: 11px;margin-bottom: 15px;"></el-progress>
          </div>
        </div>
      </el-col>
      <el-col :xs="24" :sm="9" :md="9" :lg="9" :xl="9">
        <div class="header">
          <div class="txt-bor flex4">
            <p>号库总价值</p>
            <span style="font-size: 24px;font-weight: 600;">￥15457747</span>
          </div>
          <div>
            <el-progress :text-inside="true" :stroke-width="26" :format="format4" :percentage="100"
              style="margin-top: 15px;color: #fff !important !important;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="80" :format="format5"
              style="margin-top: 10px;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="70" :format="format6"
              style="margin-top: 10px;"></el-progress>
            <el-progress :text-inside="true" :stroke-width="26" :percentage="70" :format="format7"
              style="margin-top: 10px;margin-bottom: 15px;"></el-progress>
          </div>
        </div>
      </el-col>
      <el-col :xs="24" :sm="6" :md="6" :lg="6" :xl="6">
        <div class="header easycenter">
          <span class="centertxt">快捷入口</span>
          <el-row :gutter="20">
            <el-col :span="12">
              <div class="grid-content bg-purple">
                <el-button class="vtncenter">员工提成</el-button>
                <el-button class="vtncenter">库存管理</el-button>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="grid-content bg-purple">
                <el-button class="vtncenter">借款报销</el-button>
                <el-button class="vtncenter">汇总报表</el-button>
              </div>
            </el-col>
          </el-row>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //状态数据
      TodayCount: '',
      status: {},
      colors: [
        { color: '#563BFF', percentage: 20 },
      ],
      colors1: [
        { color: '#FF7049', percentage: 20 },
      ],
      colors2: [
        { color: '#499DFF', percentage: 20 },
      ],
      colors3: [
        { color: '#8C35FF', percentage: 20 },
      ]
    }

  },

  methods: {
    format(percentage) {
      return "王者荣耀：69个，占比71.2%"
    },
    format1(percentage) {
      return "穿越火线：56个，占比21.2%"
    },
    format2(percentage) {
      return "QQ飞车：30个，占比9.2%"
    },
    format3(percentage) {
      return "原神：29个"
    },
    format4(percentage) {
      return "王者荣耀：￥1231442"
    },
    format5(percentage) {
      return "穿越火线：￥554124"
    },
    format6(percentage) {
      return "QQ飞车：￥156414"
    },
    format7(percentage) {
      return "原神：￥151344"
    },
  }

}
</script>

<style lang="scss" scoped>
// /deep/ .el-progress-circle__track {
// stroke: #EEEEEE;
// }
::v-deep .el-progress-bar__outer {
  background-color: #fff !important;
}

::v-deep .el-progress-bar__inner {
  text-align: left;
  background: linear-gradient(268.09deg, #6067FA 0%, #7799FC 100%)
}

::v-deep .el-progress-bar__innerText {
  color: #FFFFFF !important;
  font-size: 12px !important;
  font-weight: 600;
  padding-left: 16px;
}

.txt-bor {
  >p {

    opacity: 1;
    margin: 0 0 0 20px;
    /** 文本1 */
    font-size: 18px;
    font-weight: 400;
    color: rgba(17, 38, 60, 1);
    border-left: 3px solid rgba(84, 91, 245, 1);
    padding-left: 10px;
    // margin-bottom: 15px;
    margin-left: 0;
  }
}

.header {
  min-height: 55px;
  opacity: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 20px 45px rgba(240, 237, 246, 0.5);
  margin-bottom: 15px;
  padding: 10px 20px;
  padding-top: 16px;

  >p {

    opacity: 1;
    margin: 0 0 0 20px;
    /** 文本1 */
    font-size: 18px;
    font-weight: 400;
    color: rgba(17, 38, 60, 1);
    border-left: 3px solid rgba(84, 91, 245, 1);
    padding-left: 10px;
    // margin-bottom: 15px;
    margin-left: 0;
  }

  .images {
    display: flex;
    justify-content: space-between;
    padding: 0 6.25rem;
    margin-top: 15px;

    .item {
      text-align: center;

      p {
        margin-top: 0px;
        opacity: 1;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0px;
        padding-top: .5625rem;
        color: rgba(156, 159, 167, 1);
        text-align: center;
        vertical-align: top;
      }

      h1 {

        font-size: 30px;
        margin: 8px;
      }
    }
  }



}

.flex4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.easycenter{
  padding: 21px 30px;
  padding-bottom: 41px;
  .centertxt{
    font-size: 18px;
    color: #11263C;
  }
}
.vtncenter{
  width: 99px;
height: 43px;
opacity: 1;
border-radius: 2px;
background: #fff;
font-size: 14px;
font-weight: 400;
color: #000000;
margin-left: 0  ;
margin-top: 25px;
font-size: 14px;
border: 1px solid #D1D5E5;
border-radius: 2px;
&:hover{
  background: linear-gradient(268.09deg, #6067FA 0%, #7799FC 100%);
  color: #fff;
  border: none;
}
}

</style>
